<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class Episode extends Model
{
	use HasDateTimeFormatter;
    use SoftDeletes;

//    public function types()
//    {
//        return $this->hasOne(Type::class,'id','type_id');
//    }
    public function video()
    {
        return $this->hasMany(Video::class,'episodes_id','id');
    }

    public function History()
    {
        return $this->hasMany(History::class,'traces_id','id');
    }
}
